﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XH.DataUpload.Entities;

namespace XH.DataUpload.Service
{
    public class UserService : BaseService, IUserService
    {
        public UserService(DbContext context) : base(context)
        {
        }

        public SysUser Login(string username, string password)
        {
            return Set<SysUser>().Where(u => u.Password == password && u.UserName == username).ToList().FirstOrDefault()!;
        }
    }
}
